/* 全屏容器 */
.login-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #f5f7fa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 背景数学符号装饰 */
.login-container .login-bg-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.08;
  font-size: 80px;
  font-weight: bold;
  color: #40a9ff;
}

.login-container .login-bg-decoration span {
  position: absolute;
  animation: float 15s infinite ease-in-out;
}

.login-container .login-bg-decoration span:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.login-container .login-bg-decoration span:nth-child(2) {
  top: 30%;
  right: 15%;
  animation-delay: 2s;
}

.login-container .login-bg-decoration span:nth-child(3) {
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

.login-container .login-bg-decoration span:nth-child(4) {
  top: 60%;
  right: 25%;
  animation-delay: 6s;
}

.login-container .login-bg-decoration span:nth-child(5) {
  bottom: 40%;
  left: 70%;
  animation-delay: 8s;
}

.login-container .login-bg-decoration span:nth-child(6) {
  top: 20%;
  left: 80%;
  animation-delay: 10s;
}

/* 登录卡片 */
.login-container .login-card {
  width: 100%;
  max-width: 420px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 36px 40px;
  position: relative;
  z-index: 1;
}

/* 头部标题 */
.login-container .login-card .login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-container .login-card .login-header .main-title {
  font-size: 24px;
  color: #1f2937;
  margin: 0 0 8px 0;
  font-weight: 600;
}

.login-container .login-card .login-header .sub-title {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

/* 表单样式 */
.login-container .login-card .login-form {
  width: 100%;
}

.login-container .login-card .login-form .form-item {
  margin-bottom: 24px;
}

.login-container .login-card .login-form .form-item .form-label {
  display: block;
  font-size: 14px;
  color: #374151;
  margin-bottom: 8px;
  font-weight: 500;
}

.login-container .login-card .login-form .form-item .input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.login-container .login-card .login-form .form-item .input-wrapper .anticon {
  position: absolute;
  left: 12px;
  font-size: 16px;
  color: #9ca3af;
}

.login-container .login-card .login-form .form-item .input-wrapper .form-input {
  width: 100%;
  height: 44px;
  padding: 0 12px 0 38px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #1f2937;
  transition: all 0.3s ease;
}

.login-container .login-card .login-form .form-item .input-wrapper .form-input:focus {
  outline: none;
  border-color: #40a9ff;
  box-shadow: 0 0 0 3px rgba(64, 169, 255, 0.1);
}

.login-container .login-card .login-form .form-item .input-wrapper .form-input.error {
  border-color: #f56565;
}

.login-container .login-card .login-form .form-item .input-wrapper .toggle-password {
  position: absolute;
  right: 12px;
  cursor: pointer;
  color: #9ca3af;
}

.login-container .login-card .login-form .form-item .input-wrapper .toggle-password:hover {
  color: #40a9ff;
}

.login-container .login-card .login-form .form-item .error-message {
  font-size: 12px;
  color: #f56565;
  margin-top: 4px;
}

/* 登录按钮 */
.login-container .login-card .login-form .login-btn {
  width: 100%;
  height: 46px;
  background: linear-gradient(135deg, #40a9ff 0%, #096dd9 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container .login-card .login-form .login-btn:hover {
  background: linear-gradient(135deg, #3197ff 0%, #085abc 100%);
  box-shadow: 0 4px 12px rgba(64, 169, 255, 0.2);
}

.login-container .login-card .login-form .login-btn:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
}

.login-container .login-card .login-form .login-btn .loading-icon {
  margin-right: 8px;
  animation: spin 1s infinite linear;
}

/* 底部链接 */
.login-container .login-card .login-form .form-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}

.login-container .login-card .login-form .form-footer .link {
  font-size: 14px;
  color: #40a9ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.login-container .login-card .login-form .form-footer .link:hover {
  color: #096dd9;
  text-decoration: underline;
}

.login-container .login-card .login-form .form-footer .link.register-link {
  font-weight: 500;
}

/* 底部版权 */
.login-container .algebra-footer {
  position: absolute;
  bottom: 24px;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}

/* 动画：数学符号浮动 */
@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(15px, -15px) rotate(5deg);
  }
  50% {
    transform: translate(0, 15px) rotate(-5deg);
  }
  75% {
    transform: translate(-15px, -10px) rotate(3deg);
  }
}

/* 动画：加载旋转 */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 响应式适配（手机端） */
@media (max-width: 768px) {
  .login-container .login-card {
    padding: 28px 24px;
    margin: 0 16px;
  }

  .login-container .login-card .login-header .main-title {
    font-size: 20px;
  }

  .login-container .login-card .login-form .form-item {
    margin-bottom: 20px;
  }

  .login-container .login-card .login-form .login-btn {
    height: 44px;
    font-size: 15px;
  }
}
